/*
package com.woniu.shops.config;


import com.woniu.shops.loginInterceptor.LoginInterceptors;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.annotation.Resource;
import java.util.ArrayList;

@Configuration
@CrossOrigin
public class WebMvcConfig implements WebMvcConfigurer {
    @Resource
    private LoginInterceptors loginInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        ArrayList<String> list = new ArrayList<>();
        list.add("/css/**");
        list.add("/js/**");
        list.add("/imgs/**");
        list.add("/router/**");
        list.add("/utils/**");
        list.add("/App.vue/**");
        list.add("www.flowers.com/");
        list.add("www.flowers.com/adminLogin");
        list.add("www.flowers.com/userLogin");
        registry.addInterceptor(loginInterceptor).addPathPatterns("/**").excludePathPatterns(list);
    }
}*/
